// import moment from 'moment';
import { MESSAGETYPE } from 'configs/constants';
import { formatValue } from 'utils/share';

export default [
  {
    title: '标题',
    dataIndex: 'title',
    render: (value) => formatValue(value)
  },
  {
    title: '类型',
    dataIndex: 'type',
    render: (value) => formatValue((MESSAGETYPE[value] && MESSAGETYPE[value].name) || '')
  },
  {
    title: '内容',
    dataIndex: 'content',
    render: (value) => formatValue(value)
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    render: (value) => formatValue(value)
  }
];
